package eggcatcher;

import java.awt.Image;

public class Shit implements Item {
	private int pos_x;
	private int pos_y;
	private int speed;
	private Image image;
	public EggState State;

	Shit(int posX, int posY, int s, Image image) {
		pos_x = posX;
		pos_y = posY;
		speed = s;
		this.setImage(image);
		State = EggState.fallingAir;
	}

	public int getPosX() {
		return pos_x;
	}

	public int getPosY() {
		return pos_y;
	}

	public int getSpeed() {
		return speed;
	}
	public void setSpeed(int s) {
		speed = s;
	}

	public void update() {
		pos_y += speed;
	}

	public Image getImage() {
		return image;
	}

	public void setImage(Image image) {
		this.image = image;
	}

	@Override
	public void setPosY(int y) {
		pos_y = y;
		
	}

	@Override
	public boolean notFalling() {
		if (!this.State.equals(EggState.fallingAir))
			return true;
		return false;
	}

}
